import request from '@/utils/request'

const uploadApi = {
  upload: '/upload/img'
}

/**
 * bannerList func
 * parameter: {
 *     username: '',
 *     password: '',
 *     captcha: '12345'
 * }
 * @param parameter
 * @returns {*}
 */
// 上传图片
export function uploadImg (parameter) {
  return request({
    url: uploadApi.upload,
    method: 'post',
		headers: {
		  'Content-Type': 'multipart/form-data'
		},
    params: parameter,
  })
}

